home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / lzw4c13.zip / SAYERROR.C < prev    next >
Text File  |  1993-08-29  |  724b  |  27 lines

  1. /* sayerror.c */
  2.  
  3. #include <stdio.h>
  4. #include "LZW4C.H"
  5.  
  6. void SayError(int Code)
  7. {switch(Code)
  8.   {case EXPANSION_ERROR:
  9.      puts("\nExpansion Error: Can only expand a previously compressed file");
  10.      break;
  11.    case CANNOT_ALLOCATE:
  12.      puts("\nAllocation Error: Could not allocate sufficient memory");
  13.      break;
  14.    case INTERNAL_ERROR:
  15.      puts("\nInternal Error: LZW4C object code modified !");
  16.      break;
  17.    case NOT_INITIALIZED:
  18.      puts("\nNot Initialized Error: Must run InitLZW() first");
  19.      break;
  20.    case BAD_BITCODE:
  21.      puts("\nBit Code Error: Must be 12, 13, or 14");
  22.      break;
  23.    default:
  24.      printf("\nUnknown error returned = %d [%xH]\n",Code,Code);
  25.      break;
  26.   }
  27. }